package com.huilian.iotbox.mqtt.server.base.service.impl;

import com.huilian.iotbox.data.po.DisplayRack;
import com.huilian.iotbox.mqtt.server.base.dao.DisplayRackDao;
import com.huilian.iotbox.mqtt.server.base.service.DisplayRackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DisplayRackServiceImpl implements DisplayRackService {

    @Autowired
    private DisplayRackDao displayRackDao;

    @Override
    public DisplayRack findOneDisplayRackByCondition(DisplayRack displayRackCondition) {
        return displayRackDao.findOneDisplayRackByCondition(displayRackCondition);
    }

    @Override
    public int insert(DisplayRack displayRack) {
        return displayRackDao.insert(displayRack);
    }
}
